import request from '@/utils/request'


const api_name = '/eduservice/edu-video'
export default {

  addVideo(video) {
    return request({
      url: `${api_name}/addVideo`,
      method: 'post',
      data:video
    })
  },
  updateVideo(video) {
    return request({
      url: `${api_name}/updateVideo`,
      method: 'post',
      data:video
    })
  },
  deleteVideo(id) {
    return request({
      url: `${api_name}/${id}`,
      method: 'delete',
    })
  },
  getVideoInfo(id) {
    return request({
      url: `${api_name}/getVideoInfo/${id}`,
      method: 'get',
    })
  },


}
